Repository navigation
feat: 다른 운영자가 먼저 저장한 가이드는 덮어쓰기 전에 확인함 (#57) - #60
Merged
Merged
Conversation
저장할 때 고치기 시작한 가이드의 저장 시각(baseSavedAt)을 보내고, 409면 최신 가이드를 불러와 확인창을 띄운다. 가이드는 관리자용 조회 API에서 불러온다.
5 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
개요
편집하는 동안 다른 운영자가 같은 종의 가이드를 저장했으면, 덮어쓰기 전에 확인창(Figma W-4h)을 띄운다. (#33 후속)
tail-server에 충돌 확인이 들어가기 전에는 확인창이 뜨지 않는다. 아래 "참고"의 API 약속이 필요하다.
closes #57
변경 사항
baseSavedAt)을 보낸다. 편집 중에 목록을 다시 불러와도 이 값은 바뀌지 않는다SaveConflictDialog, 기존Dialog·Button사용)GET /api/v1/admin/species/{id}/guide)에서 불러온다api.test.ts를 고치고conflict.test.ts를 추가했다확인 방법
npm run lint,format:check,typecheck,npm test(32개) 통과참고
GET·PUT /api/v1/admin/species/{id}/guide응답에savedAt(ISO 시각, 작성 전이면 null)PUT요청의baseSavedAt이 현재savedAt과 다르면 409